package Cow_Horse;

import java.util.Scanner;

/**
 * @author zihao
 * @date 2025/3/17 19:33
 * @VERSION
 * @description
 **/
public class Coder {
    private  String name;
    private int id;
    private double salary;

    public Coder(){
    }

    public Coder(int id,double salary){
        this.id=id;
        this.salary=salary;
    }

    public int getId(){
        return id;
    }

    public void setId(int id){
        this.id=id;
    }
    public double getSalary(){
        return salary;
    }
    public void setSalary(double salary){
        this.salary=salary;
    }

    public void coderWork(){
        System.out.println("工资为"+salary+"的程序员的工号是"+id);
    }
}
